19. Hardware Related Commands > 19.10 AT^SWDAC   Configure and Read PWM Signal for DAC

19.10
AT^SWDAC   Configure and Read PWM Signal for DAC
The AT^SWDAC controls the PWM (Pulse Width Modulation) signals generated by means of the DAC_OUT pin of the TC65 Module. The DAC_OUT pin is not available on the the TC65 Terminal, therefore AT^SWDAC applies only to the TC65 Module.
Syntax
Test Command  
Response(s)
^SWDAC:(list of supported <dc>s), (list of supported <oc>s), (list of supported <fq>s)
Read Command  
Response(s)
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 

Parameter Description
 
<dc>(num)
Duty cycle in percentage steps
0...100
 
 
<oc>(num)
Open or close DAC
0
Close DAC
1
Open DAC
 
<fq>(num)
PWM frequency
0
320 Hz (accuracy of 1 percentage step)
1
970 Hz (accuracy of 3 percentage steps)
2
8,125 Hz (accuracy of 1 percentage step)
3
16,250 Hz (accuracy of 1 percentage step)
4
32,500 Hz (accuracy of 1 percentage step)
5
65,000 Hz (accuracy of 2 percentage steps)


Example

This example shows how to open the DAC_OUT output and change the duty cycle while using the same fre­quency.
 
Initial opening of DAC_OUT, while setting PWM sig­nal to 8,125 Hz at 50% duty cycle.